<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>demo 2-14</title>
	</head>
	<body>
	</body>
	<script>
		let str1 = 'x'.padStart(5,'ab');
		console.log(str1);
		let str2= 'x'.padStart(4,'ab');
		console.log(str2);
		let str3 = 'x'.padEnd(5,'ab');
		console.log(str3);
		let str4 = 'x'.padEnd(4,'ab');
		console.log(str4);
	</script>
</html>